#ifndef ICONIMAGEPROVIDER_H
#define ICONIMAGEPROVIDER_H

#include <QQuickImageProvider>
#include <QPixmap>
#include <QSize>
#include <QString>

class IconImageProvider : public QQuickImageProvider
{
public:
    IconImageProvider();

    // 实现 QQuickImageProvider 的虚函数
    QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
};

#endif // ICONIMAGEPROVIDER_H

